﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Blog.Models
{
    public class BlogDetailsModel
    {
        [Required]
        public int BlogId { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [StringLength(200)]
        public string Name { get; set; }

        [DataType(DataType.Text)]
        [StringLength(4000)]
        public string Description { get; set; }

        [DataType(DataType.Upload)]
        public string Topbanner { get; set; }

        [DataType(DataType.DateTime)]
        public System.DateTime CreationDate { get; set; }

        [Required]
        public int UserId { get; set; }
    }
}